package com.quzhi.common;


/**
 * 基于ThreadLocal封装工具类,用于保存和获取当前登录用户Id
 */
public class BaseContest {

    private static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void setCurrenId(String id){
        threadLocal.set(id);
    }

    public static String getCurrenId(){
        return threadLocal.get();
    }

}
